//
//  oldImage.h
//  laonianbang
//
//  Created by 勇拓 李 on 17/10/9.
//  Copyright © 2017年 zaiyou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define ORIGINAL_MAX_WIDTH 640.0f

@interface oldImage : NSObject

+ (UIImage *)compressImage:(UIImage *)image ratio:(float)ratio;

+ (UIImage *)imageByScalingToMaxSize:(UIImage *)sourceImage;

+ (UIImage *)imageByScalingAndCroppingForSourceImage:(UIImage *)sourceImage targetSize:(CGSize)targetSize;

//判断两个图片是否相同
+ (BOOL)twoPicIsEqual:(UIImage *)image1 image:(UIImage *)image2;

+ (NSString *)getImagePath:(UIImage *)Image;

@end
